package cn.tsvtc.shop.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author Athena
 * @Date 2020/10/29 20:51
 * @Version 1.0
 * @Description 短信发送feign接口
 */
@FeignClient("shop-sms-service")
public interface SmsFeign {

    /**
     * 发送短信验证码
     * @param phone
     * @param code
     * @return
     */
    @GetMapping("/sms/sendSms")
    String send(@RequestParam("phone") String phone, @RequestParam("code") String code);

}
